
#include<iostream>
#include<cstring>
#include<algorithm>
#include<cstdio>
#include<string>
#include<cstdlib>
#define ll long long
const int INF = 0x3f3f3f3f;
const long long LIMIT = 4294967295LL;
const int maxn = 100 + 10;
using namespace std;
char a[3][100]={"qwertyuiop",
                 "asdfghjkl;",
                 "zxcvbnm,./"};
int main()
{
    char n;
    char b[110];
    int i,ii,j;
    while(cin>>n)
    {
        cin>>b;
           bool flag=0;
            for(i=0;i<strlen(b);i++)
            {
                for(ii=0;ii<3;ii++)
                    {for(j=0;j<10;j++)
                    if(b[i]==a[ii][j])
                    {
                        if(n=='R')
                        cout<<a[ii][j-1];
                        else
                            cout<<a[ii][j+1];
                    flag=1;
                    break;}
                    if(flag)
                        {flag=0;
                        break;}
                    }
            }
           printf("\n");
    }
    return 0;
}



